
package com.ltg.topactivity;

import com.ltg.widget.TestView;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Test2Activity extends Activity {
    TestView view;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(com.ltg.topactivity.R.layout.activity_main);
        setTitle("home");
    }

    public void onTestClicked(View v) {
        Intent intent = new Intent();
        intent.setClass(this, Test3Activity.class);
//        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//        intent.addCategory(Intent.CATEGORY_LAUNCHER);
        startActivity(intent);
    }
}
